/**
 * 文本内容类型
 * */



let order: "asc" | "desc" | "" = "asc"

order = "desc"

order = ""

// 传入 asc desc "" 以外的内容会报错
// order = "asdf"

function showOrder(order: "asc" | "desc" | "" | number) {
    console.log("顺序是", order)
}

showOrder("asc")

// 甚至可以组合number
showOrder(998)
